a=int(input('输入行数：'))
for i in range(0,a):
    for y in range(0,a-i):
        print(' ',end="")
    s='* '*i
    print(s)
for i in range(0,a):
    for x in range(0,i):
        print(' ',end="")
    t='* '*(a-i)
    print(t)